Apple II
Technical Notes
_____________________________________________________________________________
                                                  Developer Technical Support


Apple IIGS
#44:    GetPenState and SetPenState Record Error

Written by:    Keith Rollin                                     November 1988

This Technical Note corrects an error in the record used for GetPenState and 
SetPenState.
_____________________________________________________________________________

The Apple IIGS Toolbox Reference, Volume 2 incorrectly describes the record 
used to save and restore information about the drawing pen in Figure 16-38 on 
page 16-238.  The include files for the Apple Programmer's Workshop (APW) and 
the Macintosh Programmer's Workshop IIGS (MPW IIGS) assemblers and C compilers 
also reflect this error.  The correct record is as follows:

     Offset        Field                    Description
                   --------------------
         $0       |__                __|
         $1       |__    psPenLoc    __|    LONG - Point specifying pen
         $2       |__                __|           location
         $3       |____________________|
         $4       |__                __|
         $5       |__   psPenSize    __|    LONG - Point specifying pen size
         $6       |__                __|
         $7       |____________________|
         $8       |__   psPenMode    __|    WORD - Pen mode
         $9       |____________________|
         $A       |                    |
                  |                    |
                  |      psPenPat      |    32 bytes - Pen pattern
                  |                    |
        $21       |____________________|
        $22       |                    |
                  |                    |
                  |     psPenMask      |     8 bytes - Pen mask
                  |                    |
        $31       |____________________|
        $32